package com.example.win.android_banduyujia.http.response;

/**
 * Created by Win on 2015/8/6.
 */
public class BaseHttpResponse {

    private boolean  success = true;
    private String   message = " ";

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("success=");
        sb.append(isSuccess());
        sb.append(";");
        sb.append("message=");
        sb.append(isSuccess());
        sb.append(";");
        return sb.toString();
    }

    public Object saveInfo(BaseHttpResponse response){
        return  response;
    }
}
